home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.006 / xemacs-1 / lib / xemacs-19.13 / info / new-users-guide.info-2 < prev    next >
Encoding:
GNU Info File  |  1995-09-01  |  48.5 KB  |  1,239 lines

  1. This is Info file ../../info/new-users-guide.info, produced by
  2. Makeinfo-1.63 from the input file new-users-guide.texi.
  3.  
  4.    This file will serve as the User's Manual for the XEmacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.  Copyright (C)
  7. 1991, 1992, 1993, 1994 Lucid, Inc.  Copyright (C) 1993, 1994 Sun
  8. Microsystems, Inc.
  9.  
  10.    Permission is granted to make and distribute verbatim copies of this
  11. manual provided the copyright notice and this permission notice are
  12. preserved on all copies.
  13.  
  14. 
  15. File: new-users-guide.info,  Node: Help,  Next: Modes,  Prev: Customization Basics,  Up: Top
  16.  
  17. Help
  18. ****
  19.  
  20.    XEmacs provides a comprehensive Help facility. On the extreme right
  21. of the menu-bar there is a Help menu. There are several help commands
  22. provided by this menu. You can also use `C-h' for invoking the Help
  23. facility. Type "?" for a list of keys you can type after typing `C-h'.
  24. If you want more information on what your options are and what kind of
  25. help you can get type "?" again. You will get a listing of all the keys
  26. you can type and what they will do. Initially if you want help, type
  27. `C-h' three times.
  28.  
  29. * Menu:
  30.  
  31. * The Help Menu::                   Items on the Help menu
  32.  
  33. 
  34. File: new-users-guide.info,  Node: The Help Menu,  Prev: Help,  Up: Help
  35.  
  36. Help menu
  37. =========
  38.  
  39.    When you click on the Help menu with any of the mouse buttons you
  40. will get the following menu items:
  41.  
  42. Info
  43.      Selecting this item will take you to the Info page which is the
  44.      online documentation browsing system. You can simply click on the
  45.      highlighted items and "Info" will take you to the document
  46.      providing information about that topic.
  47.  
  48. Describe Mode
  49.      After you select this item, you will get a documentation on the
  50.      major and minor modes which are enabled in the buffer you are
  51.      working with. *Note Modes::, for information on Modes.
  52.  
  53. Hyper Apropos...
  54.      After you select this item, you will see the following message in
  55.      the echo area:
  56.  
  57.           List symbols matching regexp:
  58.  
  59.      If you type "mode" and hit RET, you will get a list of all the
  60.      symbols (like functions and commands). You can now get
  61.      documentation on any of the given symbols by "clicking" on any of
  62.      the symbols (i.e. drag your mouse on the appropriate symbol and
  63.      release the button). For example, if you "click" on the
  64.      'auto-fill-mode' you will get the following message in the window
  65.      at the bottom:
  66.  
  67.           auto-fill-mode
  68.           
  69.           Function, Command:
  70.           
  71.             Toggle auto-fill mode.
  72.             With arg, turn auto-fill mode on if and only if arg is positive.
  73.             In auto-fill mode, inserting a space at a column beyond `fill-column'
  74.             automatically breaks the line at a previous space.
  75.           
  76.           Variable:
  77.           
  78.             value = nil
  79.           
  80.             variable not documented
  81.  
  82. Command Apropos...
  83.      Selecting this item will prompt you for a string just like when you
  84.      select Hyper Apropos.... After you give a string name, you will get
  85.      a listing of all the functions and commands containing that string
  86.      name with a very short description about what that command does.
  87.  
  88. Full Apropos...
  89.      After you select this item, you will be prompted for a string name
  90.      in the echo area:
  91.  
  92.           Apropos (regexp):
  93.  
  94.      Now you can give any string name, for example "mode" and hit RET.
  95.      You will get a listing of all the variables and commands
  96.      containing that string i.e "mode" with a short description of its
  97.      function.
  98.  
  99. List Keybindings
  100.      Select this item and you will get a listing of all the keys and the
  101.      commands that they execute. Depending on which Major mode your
  102.      buffer is in, you will get a listing of the special keybindings
  103.      for that particular buffer also. For example, if you are in
  104.      "Texinfo" mode, part of your list will contain:
  105.  
  106.           C-c C-c n    texinfo-insert-@node
  107.           C-c C-c o    texinfo-insert-@noindent
  108.           C-c C-c s    texinfo-insert-@samp
  109.           C-c C-c t    texinfo-insert-@table
  110.           C-c C-c v    texinfo-insert-@var
  111.           C-c C-c x    texinfo-insert-@example
  112.           C-c C-c {    texinfo-insert-braces
  113.  
  114.      These keybindings apply only to "Texinfo" mode. *Note Modes::, for
  115.      more information on various modes.
  116.  
  117. Describe Key...
  118.      After you select this item, you will be see the following message
  119.      in the echo area:
  120.  
  121.           Describe Key:
  122.      After you type a command key sequence, full documentation of that
  123.      command will be displayed. For example if you type `C-g', you will
  124.      see the following documentation for `C-g':
  125.  
  126.           keyboard-quit:
  127.           Signal a `quit' condition.
  128.      This means that `C-g' will quit whatever command you gave earlier.
  129.  
  130. Describe Function...
  131.      This menu item provides documentation for a function. After you
  132.      select this item, it will prompt you for a function name in the
  133.      echo area:
  134.  
  135.           Describe function (default <some function name>):
  136.  
  137.      If you hit RET without giving a function name, you will get
  138.      documentation for that default function name, otherwise if you
  139.      type a function name and hit RET, you will get documentation for
  140.      the given function.
  141.  
  142. Describe Variable...
  143.      You can get documentation on any variable by selecting this menu
  144.      item. It is similar to Describe Function and will prompt you for a
  145.      variable name.
  146.  
  147. Unix Manual...
  148.      After you select this item you will be prompted for a Unix command
  149.      for which you wish to see the man page. You will see the following
  150.      message in the echo area:
  151.  
  152.           Manual entry: (default <some name>)
  153.  
  154.      Now you can type any command, for example type `who' and press
  155.      RET. You will get the man page for the Unix command `who' which
  156.      lists who is on the system.
  157.  
  158. Emacs Tutorial
  159.      Select this item and you will get a tutorial on Emacs. It is good
  160.      for new users.
  161.  
  162. Emacs News
  163.      Select this item and you will get a lot of historical and current
  164.      news on Emacs !
  165.  
  166.    For more information on the Help facility, *Note Help: ()Help.
  167.  
  168. 
  169. File: new-users-guide.info,  Node: Modes,  Next: Files,  Prev: Help,  Up: Top
  170.  
  171. Major and Minor Modes
  172. *********************
  173.  
  174.    XEmacs is "language sensitive". It has several "major" and "minor"
  175. modes.  The major modes customize Emacs to edit text of a particular
  176. sort. There are major modes for C, Lisp, Emacs Lisp, LaTeX, English
  177. etc. Within each major mode, certain functions and keys are redefined
  178. to "suit" that particular sort of text. The minor modes provide certain
  179. features which can be turned off or on at any time. Emacs can only be
  180. in one major mode at any time, but it can turn on several minor modes
  181. at the same time. After you have selected any major or minor mode, you
  182. can select Describe Mode from the Help menu and you will get
  183. documentation about those modes.
  184.  
  185. * Menu:
  186.  
  187. * Major Modes::                 Choosing Major Modes
  188. * Minor Modes::                 Auto-Fill, Abbrev and other minor modes
  189.  
  190. 
  191. File: new-users-guide.info,  Node: Major Modes,  Next: Minor Modes,  Prev: Modes,  Up: Modes
  192.  
  193. Major Modes
  194. ===========
  195.  
  196.    Emacs has several major modes which customize Emacs to edit text of
  197. various sorts. You can have only one major mode at any time. Within each
  198. major mode, Emacs redefines certain functions (like cursor movement,
  199. indentation and text killing) to suit the needs of the text being
  200. edited. When you are editing a specific type of text you should switch
  201. to the appropriate mode. If you are working with C code, you should
  202. switch to C mode; if you are working with Lisp code, then switch to lisp
  203. mode and if you are working with English text switch to Text mode.
  204.  
  205.    When you open a file to work on, Emacs usually selects the
  206. appropriate mode. For example, if you open a file called `guide.c' then
  207. Emacs will select the C mode because of the ".c" extension of the file.
  208. To explicitly select a mode type the following command:
  209.  
  210.      ;;; selects lisp mode
  211.      M-x lisp-mode
  212.      
  213.      ;;; selects C mode
  214.      M-x c-mode
  215.  
  216. To select any other mode, just add the major mode name before the
  217. '-mode'. The current mode in which you are in will be displayed in
  218. parenthesis in the mode-line at the bottom of the frame. All major
  219. modes have some special keybindings and you can get a listing of those
  220. keybindings by selecting List Keybindings from the Help menu on the
  221. menu bar.
  222.  
  223.    Some of the available modes in XEmacs are :
  224.  
  225. fundamental-mode
  226.      When you start XEmacs, usually you start with the default
  227.      "Fundamental" mode. This mode has no special definitions or
  228.      settings.
  229.  
  230. nroff-mode
  231.      Use this mode when you have to format a text with nroff before it
  232.      can be available in readable form. It redefines some indentation
  233.      commands. *Note Nroff Mode: ()Nroff Mode, for information on this
  234.      mode.
  235.  
  236. tex-mode
  237.      Use this mode if you are using the LaTeX text-formatter. It
  238.      provides commands for insertion of quotes, braces and other
  239.      characters. It also allows you to format the buffer for printing.
  240.      *Note TeX Mode: ()TeX Mode, for information on this mode.
  241.  
  242. texinfo-mode
  243.      Texinfo is a documentation system that uses a single source file to
  244.      produce both printed output and on-line documentation. When you
  245.      use this mode, there will be some special keybindings for
  246.      inserting some characters and executing some commands.
  247.  
  248.      This info file which you are reading right now is produced by
  249.      'Texinfo'
  250.  
  251. outline-mode
  252.      Use this mode for editing outlines. When you enable this mode, you
  253.      can make part of the text temporarily invisible so that you can
  254.      see the overall structure of the outline. *Note Outline Mode:
  255.      ()Outline Mode, for information on this mode.
  256.  
  257. c-mode
  258.      Use this mode for C programs. It will redefine some indentation
  259.      commands. *Note C Indent: ()C Indent.
  260.  
  261. lisp-mode
  262.      Use this mode for Lisp programs. Look at the XEmacs Reference
  263.      Manual for more information.
  264.  
  265. fortran-mode
  266.      Use this mode for Fortran programs. This mode provides special
  267.      commands to move around and some other indentation commands.  For
  268.      more information on this mode, *Note Fortran: ()Fortran.
  269.  
  270. edit-picture
  271.      This is the picture mode which you can use to create a picture out
  272.      of text characters. *Note Picture: ()Picture, for more information.
  273.  
  274. asm-mode
  275.      Use asm-mode for editing files of assembler code. Look at the file
  276.      ` /usr/local/lib/xemacs-19.11/lisp/modes/asm.el' for more
  277.      information.
  278.  
  279.    There are some other modes and commands for working with other kinds
  280. of text or programs. Emacs also provides commands for reading and
  281. sending Mail. For more information on these features look at the XEmacs
  282. Manual. Emacs also provides the functions of a desk calendar, with a
  283. diary of past or planned events. For more information on the calendar
  284. mode look at the manual for Calendar Mode and Diary.
  285.  
  286. 
  287. File: new-users-guide.info,  Node: Minor Modes,  Prev: Major Modes,  Up: Modes
  288.  
  289. Minor Modes
  290. ===========
  291.  
  292.    The minor modes in Emacs provide some optional features which you can
  293. turn on or off. Any number of minor modes can be active at the same time
  294. with any major mode. You can enable a minor mode in one buffer and
  295. disable it in other mode. To enable a minor mode, for example the
  296. font-lock mode type the following command:
  297.  
  298.      M-x font-lock-mode
  299.  
  300. To enable the other minor modes, replace the "font-lock" with the name
  301. of the minor mode. To disable the mode type the command again. A
  302. positive argument will always turn the mode on. Whenever you type this
  303. command, it will turn the mode on if it was off, OR it will turn it off
  304. if it was on i.e. it toggles. Look at the mode-line at the bottom of the
  305. frame. If it says FLock in parentheses, then it means that this mode is
  306. on, otherwise it is off.
  307.  
  308.    The following are some of the minor modes available in XEmacs. To
  309. enable any one of them type "M-x" in front of them.
  310.  
  311. font-lock-mode
  312.      You can also choose this mode by selecting the Syntax Highlighting
  313.      menu item from the Options menu on the menu-bar at the top. If you
  314.      wish to have this mode enabled permanently, choose Save Options
  315.      from the Options menu. *Note Options Menu::, for more information
  316.      on the Options menu.  You can also add statements in your `.emacs'
  317.      file. For each major mode in which you wish to enable this minor
  318.      mode, you need a statement in your `.emacs' file. The following
  319.      example shows how to enable the font-lock mode when the major mode
  320.      is c-mode.
  321.  
  322.           (add-hook 'c-mode-hook        'turn-on-font-lock)
  323.  
  324.      *Note Other Customizations::.
  325.  
  326.      When you enable this mode, the text will be displayed in different
  327.      colors and fonts depending on the type of the text. This makes the
  328.      text very easy to read and understand. For example, comments might
  329.      be displayed in red, variables in black, functions in blue and
  330.      other keywords in different colors and fonts. When you select More
  331.      from the Syntax Highlighting option, you get very detailed display
  332.      of colors and fonts; function names within comments themselves
  333.      might appear in a different font and color.
  334.  
  335. auto-fill-mode
  336.      Enabling this mode will provide automatic word-wrapping. The SPC
  337.      key will break lines i.e. insert newlines as you type to prevent
  338.      lines from becoming too long.
  339.  
  340. overwrite-mode
  341.      When you enable this mode, the text that you type will replace the
  342.      existing text rather than moving it to the right (the default
  343.      case). You can enable this mode by selecting Overstrike menu-item
  344.      from the Options menu from the menu-bar.
  345.  
  346. abbrev-mode
  347.      After you enable this mode, you can define words which will expand
  348.      into some different text i.e. you can define abbreviations. For
  349.      example, you might define "expand" to "expand will eventually
  350.      expand to this text". After this definition you will be able to
  351.      get "expand will eventually expand to this text" simply by typing
  352.  
  353.           expand SPC
  354.  
  355.      *Note Abbrevs: ()Abbrevs, for more information on this mode and on
  356.      defining abbreviations.
  357.  
  358. auto-save-mode
  359.      After you enable this mode in a buffer, the contents of that
  360.      buffer will be saved periodically. This will reduce the amount you
  361.      might lose in case of a system crash.
  362.  
  363. line-number-mode
  364.      After you enable this mode, the line number at which your cursor is
  365.      present will be displayed continously in the mode line.
  366.  
  367. blink-paren
  368.      To enable this command, just type
  369.           M-x blink-paren
  370.  
  371.      Do not add the "-mode" to it.  You can also select the Paren
  372.      Highlighting option from the Options menu. After you enable this
  373.      command, put your cursor on one of the left parenthesis. The other
  374.      matching parenthesis will start blinking. *Note Options Menu:: for
  375.      more information on the Paren Highlighting option.
  376.  
  377.    For information on some other modes, look at the XEmacs Reference
  378. Manual and the associated files.
  379.  
  380. 
  381. File: new-users-guide.info,  Node: Files,  Next: Other Customizations,  Prev: Modes,  Up: Top
  382.  
  383. Files
  384. *****
  385.  
  386.    The basic unit of stored data in Unix is the "file".  To edit a file,
  387. you must tell Emacs to read the file into a buffer. This is called
  388. "visiting" the file. You can now edit the buffer and to save the
  389. changes you must write the buffer back to the file.
  390.  
  391.    In addition to visiting and saving files, Emacs can delete, copy,
  392. rename, and append to files, and operate on file directories.
  393.  
  394. * Menu:
  395.  
  396. * File Names::                  How to type and edit file name arguments.
  397. * Visiting::                    Visiting a file prepares Emacs to edit the file.
  398. * Saving Files::                How to save Emacs files.
  399.  
  400. 
  401. File: new-users-guide.info,  Node: File Names,  Next: Visiting,  Prev: Files,  Up: Files
  402.  
  403. File Names
  404. ==========
  405.  
  406.    Most of the Emacs commands that operate on a file require you to
  407. specify a file name. For example, you might specify the file name
  408. initially when you enter Emacs :
  409.  
  410.      xemacs myfile RET
  411.  
  412. After you hit RET, you will enter XEmacs with "myfile" read into the
  413. current buffer. If you do not specify the filename when entering Emacs,
  414. you can use the Open... option from the File menu. You will be prompted
  415. for a filename in the echo area:
  416.  
  417.      Find file: /usr/workspace/
  418.  
  419. Type in a file name which you want to open after the "/" and hit RET.
  420. The specified file will be read into the current buffer. The
  421. "/usr/workspace" might be the "default directory". When Emacs prompts
  422. you for a file, it uses the default-directory unless you specify a
  423. directory. You can see what the default directory of the current buffer
  424. is by using the Describe Variable option from the Help menu. When Emacs
  425. prompts you for the variable name to describe, type DEFAULT-DIRECTORY.
  426. If you wish to open a file in some other directory, use DEL or the
  427. BackSpace key to go back and type the path name of the new directory.
  428.  
  429.    You can create a new directory by typing `M-x make-directory'. This
  430. command will prompt you for a directory name:
  431.  
  432.      Create directory: /usr/workspace/
  433.  
  434. After you type a directory name and press RET, a new directory with the
  435. specified name will be created. If you do not wish to create a new
  436. directory, then simply press `C-g' to quit the command. Similarly, you
  437. can also remove a directory by using the command `remove-directory'.
  438. The command `M-x pwd' will print the current buffer's default
  439. directory. For more information on file names, *Note File Names: ()File
  440. Names.
  441.  
  442. 
  443. File: new-users-guide.info,  Node: Visiting,  Next: Saving Files,  Prev: File Names,  Up: Files
  444.  
  445. Visiting Files
  446. ==============
  447.  
  448.    To edit a file in Emacs you need to "visit" it. "Visiting" a file
  449. means copying its contents (or reading them) into the current buffer.
  450. Emacs will create a new buffer for each file that you visit. The buffer
  451. will be named after the file that you open. If you open a file
  452. `/usr/workspace/myfile.texinfo', the buffer will be called
  453. "myfile.texinfo". If a buffer with this name already exists, a unique
  454. name will be constructed by appending `<2>', `<3>', etc. If this is the
  455. second buffer with the same name, a "<2>" will be appended, "<3>" for a
  456. third buffer and so on. The name of the buffer which is being displayed
  457. in the window will be shown both at the top and bottom of the frame.
  458. Once you are in XEmacs, you can use the following commands:
  459.  
  460. `C-x C-f'
  461.      This command will visit a file (`find-file'). It will prompt you
  462.      for a file name to visit. The Open... option from the File menu
  463.      does the same thing:
  464.  
  465.           Find file: /usr/workspace/
  466.  
  467.      Type in a filename and press RET. You will see a new buffer on the
  468.      screen with its name in the mode-line. If the filename you specify
  469.      already exists in Emacs, the buffer containing that file will be
  470.      selected. You will get an error message if the filename does not
  471.      exist. If you still press RET, a new buffer with the given
  472.      filename will be displayed on the screen.
  473.  
  474. `C-x C-v'
  475.      This command (`find-alternate-file'), will visit a different file
  476.      instead of the one visited last. It is similar to `C-c C-f' except
  477.      that it kills the current buffer (after offering to save it).
  478.  
  479. `C-x 5 C-f'
  480.      This command will visit a file in another frame
  481.      (`find-file-other-frame') without changing the current window or
  482.      frame. The Open in New Frame... from the File menu will do the
  483.      same thing. It will prompt you for a file name in the echo area.
  484.      After you type the file name and press RET, the specified file
  485.      will be read into a new buffer and displayed on a new frame.
  486.  
  487. 
  488. File: new-users-guide.info,  Node: Saving Files,  Prev: Visiting,  Up: Files
  489.  
  490. Saving Files
  491. ============
  492.  
  493.    The changes that you make after visiting a file will not be saved
  494. unless you save the buffer. When you save the buffer, Emacs writes the
  495. current contents of the buffer into the visited file. Some commands to
  496. save buffers are:
  497.  
  498. `C-x C-s'
  499.      This command will permanently save the current buffer in its
  500.      visited file (`save-buffer'). You will see the following message
  501.      in the echo area if you save a file called "myfile.texinfo" :
  502.  
  503.           Wrote /usr/workspace/myfile.texinfo
  504.  
  505.      Try using this command twice. You will get the above message the
  506.      first time you use this command, the second time you will get the
  507.      following message:
  508.  
  509.           (No changes need to be saved)
  510.  
  511.      This message indicates that you haven't made any changes since the
  512.      last time you saved the file.
  513.  
  514. `C-x s'
  515.      This command will save all the buffers in their visited files
  516.      (`save-some-buffers'). It will prompt you for typing yes or no:
  517.  
  518.           Save file /usr/workspace/myfile.texinfo? (y or n)
  519.  
  520.      You will get the above message for all the buffers. Type "y" if
  521.      you want to save the buffer.
  522.  
  523. `C-x C-w'
  524.      This command will prompt you for a file name and save the current
  525.      buffer in that file. (`write-file'). You will see the following
  526.      message in the echo area:
  527.  
  528.           Write file: /usr/workspace/
  529.  
  530.      After you type in a file name, press RET. The buffer will be saved
  531.      in a new file. You can make copies of a particular file using this
  532.      command.
  533.  
  534.    You can also undo all the changes made since the file was visited or
  535. saved by reading the text from the file again (called "reverting"). For
  536. more information on this option, *Note Reverting: ()Reverting.
  537.  
  538.    When you save a file in Emacs, it destroys its old contents. However,
  539. if you set the variable MAKE-BACKUP-FILES to non-NIL i.e. `t', Emacs
  540. will create a "backup" file. Select the Describe variable option from
  541. the Help menu and look at the documentation for this variable. Its
  542. default value should be `t'. However, if its not then use `M-x
  543. set-variable' to set it to `t' (*note Setting Variables::.). The backup
  544. file will contain the contents from the last time you visited the file.
  545. Emacs also provides options for creating numbered backups. For more
  546. information on backups, *Note Backup: ()Backup.
  547.  
  548.    Emacs also saves all the files from time to time so that in case of a
  549. system crash you don't lose lot of your work. You will see the message
  550. `Auto-saving...' displayed in the echo area when the buffer is being
  551. saved automatically. The auto saved files are named by putting the
  552. character `#' in front and back. For example a file called
  553. "myfile.texinfo" would be named as `#myfile.texinfo#'. For information
  554. on controlling auto-saving and recovering data from auto-saving, *Note
  555. Auto Save Files: ()Auto Save Files.
  556.  
  557.    Emacs provides protection from simultaneous editing which occurs if
  558. two users are visiting the same file and trying to save their changes.
  559. It will put a lock on a file which is being visited and modified. If
  560. any other user tries to modify that file, it will inform the user about
  561. the lock and provide some options. For more information on protection
  562. against simultaneous editing, *Note Interlocking: ()Interlocking.
  563.  
  564. 
  565. File: new-users-guide.info,  Node: Other Customizations,  Next: Select and Move,  Prev: Files,  Up: Top
  566.  
  567. Other Customizations
  568. ********************
  569.  
  570.    You can modify the behavior of Emacs in minor ways permanently by
  571. putting your changes in your `.emacs' file. This file contains Lisp
  572. function call expressions. Each of these expressions will consist of a
  573. function name followed by arguments, all surrounded by parentheses. For
  574. example, to turn on the auto-fill-mode (i.e. break lines automatically
  575. when they become too long) , put the following  line in your `.emacs'
  576. file:
  577.  
  578.      (add-hook 'text-mode-hook
  579.              '(lambda() (auto-fill-mode 1)))
  580.  
  581. Emacs has a function named "turn-on-auto-fill" which is defined as
  582. "(lambda() (auto-fill-mode 1))". Therefore you can also write the above
  583. as:
  584.  
  585.      (add-hook 'text-mode-hook 'turn-on-auto-fill)
  586.  
  587. Emacs provides a number of hooks for the sake of customization. The hook
  588. variables contain list of functions to be called with no arguments. To
  589. turn on the auto-fill-mode, add the appropriate hook as shown in the
  590. example above.
  591.  
  592.    Similarly, to enable the "font-lock mode" which displays your
  593. program in different fonts and colors(*note Modes::.), put the
  594. following in your `.emacs' file. The comments above the statement
  595. explain what the statements do.
  596.  
  597.      ;;; enables the font-lock-mode in Lisp Mode
  598.      (add-hook 'lisp-mode-hook    'turn-on-font-lock)
  599.      
  600.      ;;; enables the font-lock-mode in Texinfo Mode
  601.      (add-hook 'texinfo-mode-hook    'turn-on-font-lock)
  602.      
  603.      ;;; enables the font-lock mode in C Mode
  604.      (add-hook 'c-mode-hook        'turn-on-font-lock)
  605.  
  606.    To turn on the font-lock mode in other Major Modes like emacs-lisp,
  607. just put the name of the mode with "-hook" appended to it as the middle
  608. parameter in the above examples. You can also select the color that the
  609. functions, comments or other keywords  should be displayed in :
  610.  
  611.      ;;; the function names will now be displayed in blue color
  612.      (set-face-foreground 'font-lock-function-name-face "blue")
  613.      
  614.      ;;; the comments will be displayed in forest green
  615.       (set-face-foreground 'font-lock-comment-face "forest green")
  616.  
  617. For other customizations regarding the font-lock face, look at the file
  618. `/usr/local/lib/xemacs-19.11/etc/sample.emacs'.
  619.  
  620. * Menu:
  621.  
  622. * Setting Variables::           Customizing Emacs variables
  623. * Init File::                   Some examples of Lisp expressions in
  624.                                 .emacs file
  625.  
  626. 
  627. File: new-users-guide.info,  Node: Setting Variables,  Next: Init File,  Prev: Other Customizations,  Up: Other Customizations
  628.  
  629. Other Customizations
  630. ====================
  631.  
  632.    In XEmacs, "variables" are used for internal record-keeping and
  633. customizations. There are some variables called "options" which you can
  634. use for customizations. To examine a variable use:
  635.  
  636.      ;;; print the value and documentation of the variable, use either of the
  637.      ;;; following commands
  638.      C-h v
  639.      M-x describe variable
  640.  
  641.    After you type any of the above commands, you will be prompted for a
  642. variable name in the "echo area". Type in the name of the variable, for
  643. example, type  CASE-FOLD-SEARCH RET Your window will split into two and
  644. you will see the following message in that window:
  645.  
  646.      case-fold-search's value is t
  647.      This value is specific to the current buffer.
  648.      
  649.      Documentation:
  650.      *Non-nil if searches should ignore case.
  651.      Automatically becomes buffer-local when set in any fashion.
  652.  
  653. Since this variable's value is 't' searches will ignore case. If you
  654. want case-sensitive-search (i.e. if you are searching for "Foo" and you
  655. do not want "foo" to be included in the search, you need to set this
  656. variable to "nil". In order to do that, use:
  657.  
  658.      M-x set-variable
  659.  
  660. Emacs will prompt you for the variable which you wish to set. Type in
  661. "case-fold-search" and hit RET. You will see the following message:
  662.  
  663.      Set case-fold-search to value:
  664.  
  665. Type "nil" and hit RET.  Now if you again use `M-x describe variable' ,
  666. you will see that the new value of case-fold-search will be "nil" and
  667. your searches will be case-sensitive. This will be effective only for
  668. that Emacs session. If you want to change the value of a variable
  669. permanently put the following statement in your `.emacs' file :
  670.  
  671.      (setq case-fold-search nil)
  672.  
  673. This statement will make searches case-sensitive only in the current
  674. buffer which is the `.emacs' file. This will not be very useful. To
  675. make searches case-sensitive globally in all buffers, use:
  676.  
  677.      (setq-default case-fold-search nil)
  678.  
  679.    If you want to change the value of any other variable, use :
  680.  
  681.      (setq <variable-name> <new value>)
  682.  
  683. "setq" will assign the "new value" to the "variable-name" .
  684.  
  685.    If you want a list of the "options" i.e. the variables available for
  686. customization type:
  687.  
  688.  
  689.      ;;; displays a buffer listing names, values and documentation of options
  690.      M-x list-options
  691.      
  692.      ;;; displays options and allows you to edit those list of options
  693.      M-x edit-options
  694.  
  695. Try these options. If you are using edit-options to edit a variable,
  696. just point at the variable you wish to edit and use one of the following
  697. commands:
  698.  
  699. 1
  700.      Set the value of the variable to t (non-nil).
  701.  
  702. 0
  703.      Set the value of the variable to nil.
  704.  
  705. n
  706.      Move to the next variable.
  707.  
  708. p
  709.      Move to the previous variable.
  710.  
  711.    There are some other options available to make the value of a
  712. variable local to a buffer and then to switch to its global value. You
  713. can also have a "local variables list" in a file which specifies the
  714. values to use for certain Emacs variables when you edit that file.
  715. *Note Variables: ()Variables, for information on these options.
  716.  
  717. 
  718. File: new-users-guide.info,  Node: Init File,  Prev: Setting Variables,  Up: Other Customizations
  719.  
  720. Init File Examples
  721. ==================
  722.  
  723.    For customizing Emacs, you need to put Lisp expressions in your
  724. `.emacs' file. The following are some useful Lisp expressions. If you
  725. find any of them useful, just type them in your `.emacs' file:
  726.  
  727.    * The following expression will make TAB in C mode insert a real tab
  728.      character if the cursor or point is in the middle of the line. Now
  729.      hitting the TAB key will indent a line only if the cursor is at
  730.      the left margin or in the line's indentation:
  731.  
  732.           (setq c-tab-always-indent nil)
  733.  
  734.      The value of the variable C-TAB-ALWAYS-INDENT is usually `t' for
  735.      `true'. When this variable is true, then hitting the TAB key
  736.      always indents the current line.
  737.  
  738.    * This expression will turn on the AUTO-FILL-MODE when you are in
  739.      text mode:
  740.  
  741.           (setq text-mode-hook 'turn-on-auto-fill)
  742.  
  743.      This mode will automatically break lines when you type a space so
  744.      that the lines don't become too long. The length of the lines is
  745.      controlled by the variable FILL-COLUMN. You can set this variable
  746.      to a value you wish. Look at the documentation for this variable
  747.      to see its default value. To change the value to 75 for example,
  748.      use:
  749.  
  750.           (setq-default fill-column 75)
  751.  
  752.      This will change the value of this variable globally.
  753.  
  754.    * The following expression will enable the use of EVAL-EXPRESSION
  755.      without confirmation:
  756.  
  757.           (put 'eval-expression 'disabled nil)
  758.  
  759.      Now when you use EVAL-EXPRESSION, it will print the value of the
  760.      expression you specify in the "echo area" without confirming with
  761.      you.
  762.  
  763.    * This expression will remove the binding of `C-x C-c', because its
  764.      easy to hit this key by mistake and you will exit Emacs
  765.      unintentionally. You can use the Exit Emacs option from the File
  766.      menu to exit Emacs.
  767.  
  768.           (global-set-key "\C-x\C-c" nil)
  769.  
  770.      Now if you type `C-x C-c', you won't exit Emacs.
  771.  
  772.    * The following expression will make the BACKSPACE and the DEL key
  773.      work in the same manner:
  774.  
  775.           (global-set-key 'backspace [delete])
  776.  
  777.    * This expression will make searches case sensitive:
  778.  
  779.           (setq-default case-fold-search nil)
  780.  
  781.      If we use "setq" instead of "setq-default" then searches will be
  782.      case-sensitive only in the current buffer's local value. In this
  783.      case the buffer would be the `.emacs' file. Since this would not
  784.      be too helpful and we want to have case-sensitive searches in all
  785.      buffers, we have to use "setq-default".
  786.  
  787.    * This expression will enable the font-lock mode when you are using
  788.      texinfo mode:
  789.  
  790.           (add-hook 'texinfo-mode-hook 'turn-on-font-lock)
  791.  
  792.      *Note Minor Modes::, for information on font-lock mode.
  793.  
  794.    * Rebinds the key `C-x l' to run the function `make-symbolic-link':
  795.  
  796.           (global-set-key "\C-xl" 'make-symbolic-link)
  797.  
  798.      We use the single quote before "make-symbolic-link" because its a
  799.      function name. You can also use the following expression which
  800.      does the same thing:
  801.  
  802.           (define-key global-map "C-xl" 'make-symbolic-link)
  803.  
  804.    * The following expression will bind `C-x l' to run the function
  805.      `make-symbolic-link' in C mode only:
  806.  
  807.           (define-key c-mode-map "C-xl" 'make-symbolic-link)
  808.  
  809.      Instead of binding `C-xl' to run `make-symbolic-link', you can
  810.      bind the F1 key to run this function:
  811.  
  812.           (define-key c-mode-map 'f1 'make-symbolic-link)
  813.  
  814.      Here, you have to use lower case for naming function keys like F1.
  815.  
  816.    * You can bind the function `undo' i.e. `C-x u' to any key, for
  817.      example to F2:
  818.  
  819.           (global-set-key 'f2 'undo)
  820.  
  821.    * The following statement will display the current time in the
  822.      modeline of the buffer:
  823.  
  824.           (display-time)
  825.  
  826.    * This displays the current line number on which the cursor is
  827.      present in the modeline:
  828.  
  829.           (setq line-number-mode t)
  830.  
  831.    * If you don't want the text to be highlighted when you use commands
  832.      for marking regions so as to use the "kill" and "yank" commands
  833.      later, you can use the following expression in your `.emacs' file:
  834.  
  835.           (setq zmacs-regions nil)
  836.  
  837.      Now if you use a command like `C-x C-p' (`mark-page'), the text
  838.      will not be highlighted.
  839.  
  840.    * To control the number of buffers listed when you select the Buffers
  841.      menu, you need to set the variable BUFFERS-MENU-MAX-SIZE to
  842.      whatever value you wish. For example, if you want 20 buffers to be
  843.      listed when you select Buffers use:
  844.  
  845.           (setq buffers-menu-max-size 20)
  846.  
  847.    * If you want the window title area to display the full
  848.      directory/name of the current buffer's file, and not just the
  849.      name, use:
  850.  
  851.           (setq frame-title-format "%S: %f")
  852.  
  853.    * To get rid of the menu, use :
  854.  
  855.           (set-menubar nil)
  856.  
  857.    * If you want an extensive menu-bar use the following expression in
  858.      your `.emacs' file.
  859.  
  860.           (load "big-menubar")
  861.  
  862.      If you want to write your own menus, you can look at some of the
  863.      examples in
  864.      `/usr/local/lib/xemacs-19.13/lisp/packages/big-menubar.el' file.
  865.  
  866.    For more information on initializing your `.emacs' file, *Note Init
  867. File: ()Init File. You should also look at
  868. `/usr/local/lib/xemacs-19.13/etc/sample.emacs', which is a sample
  869. `.emacs' file. It contains some of the commonly desired customizations
  870. in Emacs.
  871.  
  872. 
  873. File: new-users-guide.info,  Node: Select and Move,  Next: Search and Replace,  Prev: Other Customizations,  Up: Top
  874.  
  875. Selecting and Moving Text
  876. *************************
  877.  
  878.    Many Emacs commands operate on an arbitrary contiguous part of the
  879. current buffer. You can select some part of the buffer and edit only
  880. that part of the buffer. This selected buffer is called a "region". You
  881. can select text in two ways:
  882.  
  883.    * You use special keys to select text by defining a region between
  884.      the cursor and "the mark" (which you set).
  885.  
  886.    * If you are running XEmacs under X, you can also select text with
  887.      the mouse.
  888.  
  889. * Menu:
  890.  
  891. * Selecting Text::              Select a region of text by setting the Mark
  892. * Mouse::                       Selecting Text with Mouse
  893. * Region Operation::            Various ways to operate on a selected text
  894. * Moving Text::                 Moving Text
  895. * Accumulating text::           Accumulating Text from several buffers
  896.  
  897. 
  898. File: new-users-guide.info,  Node: Selecting Text,  Next: Mouse,  Prev: Select and Move,  Up: Select and Move
  899.  
  900. Setting the Mark
  901. ================
  902.  
  903.    To define a region you need to set "the mark" at one end of it and
  904. move the cursor to the other end. Once you set the mark, it remains
  905. there until you set it again to some other place. Each buffer has its
  906. own "mark ring" (a place where Emacs remembers 16 previous locations of
  907. the mark). To set "the mark", you can use the following commands:
  908.  
  909. `C-SPC'
  910.      This command will set "the mark" at the position of your cursor
  911.      (`set-mark-command').  You can move your cursor around and "the
  912.      mark" will stay there.
  913.  
  914. `C-x C-x'
  915.      Interchange mark and point (`exchange-point-and-mark'). Since Emacs
  916.      will have only one cursor, after you move the cursor it will be
  917.      unable to show you where you set the "the mark". In order to see
  918.      "the mark" you can type the command `C-x C-x' which will put your
  919.      cursor on the position of your mark and your mark on the position
  920.      of your cursor. Use the command again to reset the positions of
  921.      your cursor and mark.
  922.  
  923. `C-<'
  924.      This command will push the mark at the beginning of the buffer
  925.      without changing the position of your cursor.
  926.  
  927. `C->'
  928.      This command will push the mark at the end of the buffer without
  929.      changing the position of your cursor.
  930.  
  931. You can also give arguments to `C-<' or `C->'. *Note The Mark and the
  932. Region: ()The Mark and the Region, for more information.
  933.  
  934. 
  935. File: new-users-guide.info,  Node: Mouse,  Next: Region Operation,  Prev: Selecting Text,  Up: Select and Move
  936.  
  937. Selecting Text with Mouse
  938. =========================
  939.  
  940.    If you are using XEmacs under X, you can use the mouse to select
  941. text. The selected text will always be highlighted, so just by looking
  942. at the text you know what you have selected so far. To select a word
  943. just double-click with the left-mouse-button on the word. To select a
  944. whole line triple-click anywhere on the line with the
  945. left-mouse-button. You can also use the Copy item from the Edit menu on
  946. the menu-bar to select text. This kind of selection is called Clipboard
  947. selection, *Note X Clipboard Selection: ()X Clipboard Selection, for
  948. more information. To select an arbitrary region, follow these steps:
  949.  
  950.   1. Move the mouse cursor over the character at the beginning of the
  951.      region of text you want to select.
  952.  
  953.   2. Press and hold the left mouse button.
  954.  
  955.   3. While holding the left mouse button down, drag the cursor to the
  956.      character at the end of the region of text you want to select.
  957.  
  958.   4. Release the left mouse button.
  959.         The selected region of text is highlighted.
  960.  
  961.    *Note Selecting Text with the Mouse: ()Selecting Text with the
  962. Mouse, for more information regarding the Mouse and additional mouse
  963. operations.
  964.  
  965. 
  966. File: new-users-guide.info,  Node: Region Operation,  Next: Moving Text,  Prev: Mouse,  Up: Select and Move
  967.  
  968. Operating on the Region
  969. =======================
  970.  
  971.    Once you have selected a region you can do a lot of things to the
  972. text in the region:
  973.    * Kill the text with `C-w'. For example if you want to kill a
  974.      paragraph, position the cursor to the beginning of the paragraph
  975.      and type `C-SPC'. Then go to the end of the paragraph and type
  976.      `C-w'. The entire paragraph will be deleted. You can also select
  977.      the text with a mouse and type `C-w' to kill the entire region.
  978.      *Note Killing: ()Killing, for more information.
  979.  
  980.    * Save the text in a buffer or a file (*note Accumulating Text:
  981.      ()Accumulating Text.).
  982.  
  983.    * You can convert the case of the text with `C-x C-l' or `C-x C-u'
  984.      If you type `C-x C-u' the selected text will become all
  985.      upper-case. If you type `C-x C-l' the selected text will become all
  986.      lower-case.
  987.  
  988.    * Print hardcopy with `M-x print-region'. *Note Hardcopy:
  989.      ()Hardcopy, for more information. This command will print a
  990.      hardcopy of only the selected text.
  991.  
  992.    * Indent it with `C-x TAB' or `C-M-\' *Note Indentation:
  993.      ()Indentation, for more information.
  994.  
  995. 
  996. File: new-users-guide.info,  Node: Moving Text,  Next: Accumulating text,  Prev: Region Operation,  Up: Select and Move
  997.  
  998. Moving Text
  999. ===========
  1000.  
  1001.    The most common way to move or copy text in Emacs is through
  1002. "killing" or `cutting' it and then "yanking" or `pasting' it. You can
  1003. also use the Cut or Copy option from the Edit menu for killing and
  1004. copying respectively. *Note Edit menu:: for reviewing the commands for
  1005. killing text. All the killed text in Emacs is recorded in the "kill
  1006. ring". Since there is only one kill ring in Emacs, you can kill text in
  1007. one buffer and yank it in another buffer. To `paste' or `yank' the
  1008. killed text you can use the following commands:
  1009. `C-y'
  1010.      This command will yank or paste the last killed text (`yank').
  1011.  
  1012. `M-w'
  1013.      Save region as last killed text without actually killing it
  1014.      (`copy-region-as-kill'). You can use this command to copy a
  1015.      selected region and then yank (or paste) it without actually
  1016.      removing it from the buffer.
  1017.  
  1018. `C-M-w'
  1019.      Append next kill to last batch of killed text
  1020.      (`append-next-kill'). This command will append whatever you killed
  1021.      last to what you kill now. Then later you will be able to yank the
  1022.      entire appended text from the "kill ring".
  1023.  
  1024. 
  1025. File: new-users-guide.info,  Node: Accumulating text,  Prev: Moving Text,  Up: Select and Move
  1026.  
  1027. Accumulating Text
  1028. =================
  1029.  
  1030.    The following commands can be used for accumulating text from
  1031. different buffers into one place or for copying one region of text into
  1032. many buffers:
  1033.  
  1034. `M-x append-to-buffer'
  1035.      Append region to contents of specified buffer
  1036.      (`append-to-buffer'). After you type in this command and press
  1037.      RET, Emacs will prompt you for a buffer name. You will see a
  1038.      message in the echo area:
  1039.           Append to buffer: (default <buffer name>)
  1040.  
  1041.      After you type in a buffer name, a copy of the region will be
  1042.      inserted at the location of the cursor into that buffer. If there
  1043.      is no buffer with the name given by you, Emacs will create a new
  1044.      buffer with that name. By default the cursor's position in the
  1045.      <buffer name> is at the end.
  1046.  
  1047. `M-x prepend-to-buffer'
  1048.      Prepend region to contents of specified buffer. This command is
  1049.      similar to the above command except that the cursor in the buffer
  1050.      (by default) is at the beginning rather than at the end.
  1051.  
  1052. `M-x copy-to-buffer'
  1053.      Copy region into specified buffer, deleting that buffer's old
  1054.      contents. This command will also prompt you for a buffer name.
  1055.  
  1056. `M-x insert-buffer'
  1057.      Insert contents of specified buffer into current buffer at point.
  1058.      This command will prompt you for a buffername which you want to be
  1059.      copied into the current buffer at the location of the cursor.
  1060.  
  1061. `M-x append-to-file'
  1062.      This command will prompt you for a filename and append the region
  1063.      to the end of the contents of the specified file.
  1064.  
  1065. *Note Accumulating Text: ()Accumulating Text, for more information
  1066. regarding this topic.
  1067.  
  1068.    You can also use "rectangle commands" for operating on rectangular
  1069. areas of text. *Note Rectangles: ()Rectangles, for more information
  1070. regarding rectangle commands.
  1071.  
  1072.    Emacs also provides "registers" which serve as temporary storage for
  1073. text or positions. Each register has a one character name and they can
  1074. store "regions", a "rectangle", or a "mark" i.e. a cursor position.
  1075. Whatever you store in register stays there until you store something
  1076. else in that register. To find out about commands which manipulate
  1077. registers *Note Registers: ()Registers.
  1078.  
  1079. 
  1080. File: new-users-guide.info,  Node: Search and Replace,  Prev: Select and Move,  Up: Top
  1081.  
  1082. Searching and Replacing
  1083. ***********************
  1084.  
  1085.    Emacs provides commands for searching for occurrences of a particular
  1086. string. The search is incremental i.e. it begins even before you
  1087. complete typing the whole string. All searches in Emacs ignore the case
  1088. of the text they are searching, i.e. if you are searching for "String",
  1089. then "string" will also be one of the selections. If you want a case
  1090. sensitive search select the Case Sensitive Search from the Option menu.
  1091. You can also set the variable CASE-FOLD-SEARCH to NIL for making
  1092. searches case-sensitive. For information on setting variables, *Note
  1093. Setting Variables::. The two commands for searching for strings in
  1094. XEmacs are:
  1095.  
  1096. `C-s'
  1097.      This command will prompt you for a string to search :
  1098.  
  1099.           I-search:
  1100.  
  1101.      If you type "myname" as the string to be searched, then Emacs will
  1102.      start searching for "m", "my", "myn", etc as you go on typing the
  1103.      whole string in the forward direction. The cursor will be on the
  1104.      matching string which has been found so far. If you find the
  1105.      correct match just hit RET or type `C-f' or `C-b' to set the
  1106.      cursor's position. If you find a matching string "myname" but you
  1107.      were looking for a different occurrence of it, use `C-s' again. If
  1108.      the search is unable to find the string, it will give you an error
  1109.      message.
  1110.  
  1111. `C-r'
  1112.      This command will perform an incremental search in the backward
  1113.      direction. It will prompt you for a string name:
  1114.  
  1115.           I-search backward:
  1116.  
  1117.      After you start typing the string name, it will search for the
  1118.      string in the same fashion as it does for `C-s' except that it
  1119.      will search in the backward direction. If it cannot find the
  1120.      string name, it will give you an error message.
  1121.  
  1122.    If you make a mistake while typing the string names when you use the
  1123. above commands, you can use the DEL key to erase characters. Each DEL
  1124. will erase the last character. At any time if you want to quit the
  1125. search, just type `C-g'.
  1126.  
  1127.    To do a non-incremental search i.e. to start the search only after
  1128. you have typed the whole string you can use the following commands:
  1129.  
  1130. `C-s RET "string" RET'
  1131.      This command will search for the specified string in the forward
  1132.      direction and will give an error message if the string is not
  1133.      found.
  1134.  
  1135. `C-r RET "string" RET'
  1136.      This command will search for the specified string in the backward
  1137.      direction.
  1138.  
  1139.    For information on how Emacs searches for words and regular
  1140. expressions, *Note Search: ()Search.
  1141.  
  1142.    To replace all occurrences of a string in Emacs, you can use the
  1143. following command:
  1144.      M-x replace-string
  1145.  
  1146. After you type `M-x replace-string', you will be prompted for a string
  1147. name to replace:
  1148.  
  1149.      Replace string:
  1150.  
  1151. After you type in a string name, for example "FOO" and press RET, you
  1152. will see another prompt:
  1153.  
  1154.      Replace string FOO with:
  1155.  
  1156. Now type the string which you want to replace "FOO" with and press RET.
  1157. After all the occurrences are replaced you will see the message "Done"
  1158. in the echo area.  If you want only some occurrences of the string to
  1159. be replaced, use `M-x query-replace RET <string> RET <newstring> RET'.
  1160. For more information, *Note Query Replace: ()Query Replace.
  1161.  
  1162.    XEmacs also provides a utility for checking spellings. Use `M-x
  1163. ispell-buffer' to check for spellings in the whole buffer. You can also
  1164. check the spelling of a word or a region. You can use menus to check
  1165. for spellings:
  1166.  
  1167. Evaluate the expression `(load "big-menubar")'. To evaluate this
  1168. expression you need to hit the META or the ESC key twice and type in
  1169. the expression in the echo area before hitting RET. You will get an
  1170. extensive menubar. Select the Spell Check menu item from the Utilities
  1171. menu for checking spellings.
  1172.  
  1173. 
  1174. File: new-users-guide.info,  Node: Key Index,  Next: Command Index,  Prev: Intro,  Up: Top
  1175.  
  1176. Key (Character) Index
  1177. *********************
  1178.  
  1179. * Menu:
  1180.  
  1181. * C-<:                                  Selecting Text.
  1182. * C->:                                  Selecting Text.
  1183. * C-a:                                  Cursor Position.
  1184. * C-b:                                  Cursor Position.
  1185. * C-d:                                  Erase.
  1186. * C-e:                                  Cursor Position.
  1187. * C-fx:                                 Cursor Position.
  1188. * C-g:                                  The Help Menu.
  1189. * C-h d:                                The Help Menu.
  1190. * C-h k:                                The Help Menu.
  1191. * C-h t:                                Edit.
  1192. * C-k:                                  Erase.
  1193. * C-M-\:                                Region Operation.
  1194. * C-n:                                  Cursor Position.
  1195. * C-p:                                  Cursor Position.
  1196. * C-r:                                  Search and Replace.
  1197. * C-s:                                  Search and Replace.
  1198. * C-SPC <1>:                            Selecting Text.
  1199. * C-SPC:                                Region Operation.
  1200. * C-t:                                  Cursor Position.
  1201. * C-u:                                  Numeric Argument.
  1202. * C-v:                                  Cursor Position.
  1203. * C-w:                                  Region Operation.
  1204. * C-x 0:                                XEmacs Window.
  1205. * C-x 1:                                XEmacs Window.
  1206. * C-x 2:                                XEmacs Window.
  1207. * C-x 3:                                XEmacs Window.
  1208. * C-x 4:                                XEmacs Window.
  1209. * C-x 4 b:                              XEmacs Window.
  1210. * C-x 4 d:                              XEmacs Window.
  1211. * C-x 4 f:                              XEmacs Window.
  1212. * C-x 4 m:                              XEmacs Window.
  1213. * C-x 5 C-f:                            Visiting.
  1214. * C-x C-c:                              Exiting.
  1215. * C-x C-f:                              Visiting.
  1216. * C-x C-l:                              Region Operation.
  1217. * C-x C-s:                              Saving Files.
  1218. * C-x C-u:                              Region Operation.
  1219. * C-x C-v:                              Visiting.
  1220. * C-x C-w:                              Saving Files.
  1221. * C-x C-x:                              Selecting Text.
  1222. * C-x s:                                Saving Files.
  1223. * C-x TAB:                              Region Operation.
  1224. * C-x u:                                Undo.
  1225. * C-y:                                  Moving Text.
  1226. * C-z:                                  Exiting.
  1227. * DEL:                                  Insert.
  1228. * M-<:                                  Cursor Position.
  1229. * M->:                                  Cursor Position.
  1230. * M--:                                  Numeric Argument.
  1231. * M-C-v:                                XEmacs Window.
  1232. * M-d:                                  Erase.
  1233. * M-DEL:                                Erase.
  1234. * M-k:                                  Erase.
  1235. * M-v:                                  Cursor Position.
  1236. * M-z:                                  Erase.
  1237. * RET:                                  Insert.
  1238.  
  1239.